package weixin.idea.huodong.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @Title: Entity
 * @Description: 自动发号
 * @author renlr
 * @date 2014-06-09 14:24:15
 * @version V1.0
 *
 */
@Entity
@Table(name = "weixin_hacode", schema = "")
@SuppressWarnings("serial")
public class HAcodeEntity implements java.io.Serializable {

	/** 主键 */
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name = "ID", nullable = false, length = 100)
	private java.lang.String id;
	/** 用户唯一标识 */
	@Column(name = "openid", nullable = true)
	private java.lang.String opendid;
	/** 关键词 */
	@Column(name = "GAMENAME", nullable = true, length = 100)
	private java.lang.String gamename;
	/** 发送号码 */
	@Column(name = "CONTENT", nullable = true, length = 65535)
	private java.lang.String content;
	/** 号码总数 */
	@Column(name = "TOTAL", nullable = true, precision = 10, scale = 0)
	private java.lang.Integer total;
	/** 剩余总数 */
	@Column(name = "SURPLUS", nullable = true, precision = 10, scale = 0)
	private java.lang.Integer surplus;
	/** 创建时间 */
	@Column(name = "ADDTIME", nullable = true)
	private java.util.Date addtime;
	/** 公众号Id */
	@Column(name = "accountId", nullable = true)
	private java.lang.String accountid;

	public java.lang.String getId() {
		return id;
	}

	public void setId(java.lang.String id) {
		this.id = id;
	}

	public java.lang.String getOpendid() {
		return opendid;
	}

	public void setOpendid(java.lang.String opendid) {
		this.opendid = opendid;
	}

	public java.lang.String getGamename() {
		return gamename;
	}

	public void setGamename(java.lang.String gamename) {
		this.gamename = gamename;
	}

	public java.lang.String getContent() {
		return content;
	}

	public void setContent(java.lang.String content) {
		this.content = content;
	}

	public java.lang.Integer getTotal() {
		return total;
	}

	public void setTotal(java.lang.Integer total) {
		this.total = total;
	}

	public java.lang.Integer getSurplus() {
		return surplus;
	}

	public void setSurplus(java.lang.Integer surplus) {
		this.surplus = surplus;
	}

	public java.util.Date getAddtime() {
		return addtime;
	}

	public void setAddtime(java.util.Date addtime) {
		this.addtime = addtime;
	}

	public java.lang.String getAccountid() {
		return accountid;
	}

	public void setAccountid(java.lang.String accountid) {
		this.accountid = accountid;
	}

}
